//
//  Session.h
//  yiqizhangda
//
//  Created by bigknife on 14-2-2.
//  Copyright (c) 2014年 idongler. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "VMCUserDomain.h"

@interface Session : NSObject

+ (instancetype)sharedInstance;

@property (nonatomic, readonly) VMCUserDomain *currentUser;
@property (nonatomic, readonly) BOOL isLogin;
@property (nonatomic, strong) NSString *token;
@property (nonatomic, strong) NSString *latestVersion;
@property (nonatomic, readonly) NSString *currency;

- (void)saveSession:(NSString *)token;
/**
 *  登录用户
 *
 *  @param user  用户
 *  @param token Token
 */
-(void) loginWithUser:(VMCUserDomain *)user andToken:(NSString *)token ;
/**
 *  持久化用户信息
 *
 *  @param user 用户
 */
- (void)persistUser:(VMCUserDomain *)user;

/**
 *  退出登录
 */
- (void)logout;
/**
 *  保存用药提醒
 *
 *  @param dic 传入用药信息字典
 */
- (void)saveMedicineRemind:(NSArray *)dic isEdit:(BOOL)edit;
/**
 *  获取用药提醒数据
 *
 *  @return 返回数据
 */
- (id)getMedicineRemind;
//保存咨询类型
- (void)saveAskTypeData:(NSArray *)data;
//读取咨询类型
- (id)getAskTypeData;

@end
